package com.supermarket.manage.common.dto.prod.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-09 22:36
 **/
@Data
@ApiModel("CategoryDto:商品分类信息对象")
public class CategoryDto implements Serializable {

    private static final long serialVersionUID = 1131901711727819212L;

    /**
     * 分类主键
     */
    @ApiModelProperty(value = "分类主键")
    private String cid;

    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private String fid;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    private String cname;

    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    private String buyerId;

    /**
     * 子类集合
     */
    Set<CategoryDto> childCategory = new HashSet<>();
}
